<template>
  <div>
    <!-- 轮播图 -->
    <div>
      <el-carousel :interval="3000" arrow="always" height="375px">
        <el-carousel-item v-for="item in carouselIMG" :key="item.src">
          <img class="header-img" :src="item" style="height: 387px" />
        </el-carousel-item>
      </el-carousel>
    </div>

    <!-- 右侧置顶 -->
    <div class="rightlist">
      <el-popover class="item" effect="light" placement="left" trigger="hover">
        <div style="display: flex;">
          <!-- <div style="display: flex; flex-direction: column; margin-right: 10px">
            <img src="../assets/image/erweima.jpg" alt="" style="width: 100px; height: 100px" />
            <span style="text-align: center">客服1</span>
          </div> -->
          <div style="display: flex; flex-direction: column">
            <img src="../assets/image/erweima.jpg" alt="" style="width: 120px; height: 120px;" />
            <span style="text-align: center">客服服务</span>
          </div>
        </div>
        <span slot="reference"><i class="el-icon-headset"></i>在线客服</span>
      </el-popover>
      <el-popover class="item" effect="light" content="15066669999" trigger="hover" placement="left">
        <span slot="reference"><i class="el-icon-phone"></i>电话资讯</span>
      </el-popover>
      <span v-show="showRightList" @click="scrollToTop"><i class="el-icon-arrow-up"></i>置顶</span>
    </div>
    <div class="middle">
      <div class="card">
        <el-row style="justify-content: space-between !important">
          <el-col :span="4">
            <div class="boxs">
              <span class="name">入驻企业</span>
              <span class="number">174</span>
            </div>
          </el-col>

          <el-col :span="5">
            <div class="boxs">
              <span class="name">服务商</span>
              <span class="number">645</span>
            </div>
          </el-col>
          <el-col :span="5">
            <div class="boxs">
              <span class="name">项目需求</span>
              <span class="number">34</span>
            </div>
          </el-col>
          <el-col :span="5">
            <div class="boxs">
              <span class="name">服务对接</span>
              <span class="number">12</span>
            </div>
          </el-col>
          <el-col :span="5">
            <div class="boxs1">
              <span class="name">信息披露</span>
              <span class="number">2.5亿</span>
            </div>
          </el-col>
        </el-row>
      </div>
      <!-- 数据服务交易 -->
      <div class="data-service">
        <!-- 左侧文字内容 -->
        <div class="content-left">
          <h2 class="title">交易服务市场</h2>
          <p class="subtitle">不合规不挂牌，无场景不交易</p>
          <div class="description">
            围绕挂牌、交易、支付、清算、完结的数据交易全生命周期，聚集产业链各环节服务资源，为数据产品保障双方提供一个线上可交易、可支付、可追溯的数据交易智能系统，实现从交易前、交易中、交易后的全流程闭环服务。
          </div>
          <el-button type="primary" class="goto-btn" @click="Trading">立即前往</el-button>
        </div>

        <!-- 右侧流程图 -->
        <div class="content-right">
          <div class="flow-chart">
            <!-- 交易流程图 -->
            <div class="trading-box">
              <div class="trading-header">数据交易场所</div>
              <div class="trading-process">
                <div class="process-section">
                  <div class="section-title">交易前</div>
                  <div class="section-items">
                    <span>产品登记</span>
                    <span>产品挂牌</span>
                  </div>
                </div>
                <div class="process-section">
                  <div class="section-title">交易中</div>
                  <div class="section-items">
                    <span>交易确认</span>
                    <span>交易签约</span>
                    <span>数据交付</span>
                    <span>交易结算</span>
                  </div>
                </div>
                <div class="process-section">
                  <div class="section-title">交易后</div>
                  <div class="section-items">
                    <span>凭证数据</span>
                    <span>纠纷处理</span>
                  </div>
                </div>
              </div>
              <div class="platform-name">数据交易平台</div>
            </div>
          </div>
        </div>
      </div>
      <!-- 项目需求 -->
      <div class="middle-xuqiu">
        <div class="xuqiu-left">
          <span class="text1">项目需求</span>
          <span class="text2">数据交易平台项目需求旨在构建一个安全、搞笑且友好的数据交易环境。</span>
          <span style="margin-left: 200px; cursor: pointer; color: #2f6cff; font-size: 18px;" @click="AllList">查看更多</span>
          <el-button class="xuqiu-button" type="primary" round><router-link to="/xuqiufabu" style="color: white; text-decoration: none">我要发布需求</router-link></el-button>
        </div>
        <div class="xuqiu-right" v-for="(item, index) in XuqiuList" :key="index" @click="XiangmuXiangqing(item.id)">
          <i class="el-icon-folder-opened"></i>
          <span class="text1">{{ item.projectName }}</span>
          <span class="text2">{{ item.projectDescribe }}</span>
          <span class="text3"><i class="el-icon-user-solid"></i>{{ item.bodyName }}</span>
          <div style="all: unset; display: flex; flex-direction: row">
            <img src="../assets/image/login.png" alt="" style="
                width: 150px;
                height: 200px;
                margin-right: 20px;
                margin-top: 20px;
              " />
            <span class="xiangqing">查看详情&#12288;→</span>
          </div>
        </div>
      </div>
      <!-- 角色 -->
      <div class="middle-category">
        <div class="category-title">
          <span class="category-text1">
            专业数字资产服务合作平台伙伴为您保驾护航
          </span>
          <div class="underline"></div>
        </div>
        <div class="category">
          <div class="category-icon">
            <div class="icon_title" @click="Jigou('5')">
              <div class="icon">
                <img src="../assets/image/icon-4.png" alt="" />
              </div>
              <div class="icon-title" style="z-index: 90">数据治理机构</div>
            </div>
            <div class="icon_title" @click="Jigou('3')">
              <div class="icon">
                <img src="../assets/image/icon-3.png" alt="" />
              </div>
              <div class="icon-title" style="z-index: 91">律师事务所</div>
            </div>
            <div class="icon_title" @click="Jigou('4')">
              <div class="icon">
                <img src="../assets/image/icon-5.png" alt="" />
              </div>
              <div class="icon-title" style="z-index: 92">评估机构</div>
            </div>
            <div class="icon_title" @click="Jigou('2')">
              <div class="icon">
                <img src="../assets/image/icon-2.png" alt="" />
              </div>
              <div class="icon-title" style="z-index: 93">会计师事务所</div>
            </div>
            <div class="icon_title" @click="Jigou('6')">
              <div class="icon">
                <img src="../assets/image/icon-6.png" alt="" />
              </div>
              <div class="icon-title" style="z-index: 94">金融机构</div>
            </div>
          </div>
        </div>
      </div>
      <!-- 信息纰漏 -->
      <div class="middle-category" style="margin-top: 50px">
        <div class="category-title">
          <span class="category-text1"> 信息披露 </span>
          <div class="underline"></div>
        </div>
        <div class="xinxi">
          <div class="xinxi-fist" @click="XinxiTiaozhuan(ArticleList1.id)">
            <i class="el-icon-user"></i>
            <span class="xinxi-text1">{{ ArticleList1.title }}</span>
            <span>{{ ArticleList1.summary }}</span>
            <span class="xinxi-text3">查看详情&#12288;→</span>
            <span style="color: #9a9a9a"><i class="el-icon-timer" style="display: inline-block; font-size: 18px; color: #00bfff"></i>2024-11-16</span>
          </div>
          <div class="xinxi-fist1" style="margin: 0 10px 0 10px" @click="XinxiTiaozhuan(ArticleList2.id)">
            <i class="el-icon-date"></i>
            <span class="xinxi-text1">{{ ArticleList2.title }}</span>
            <span>{{ ArticleList2.summary }}</span>
            <span class="xinxi-text3">查看详情&#12288;→</span>
            <span style="color: #9a9a9a"><i class="el-icon-timer" style="display: inline-block; font-size: 18px; color: #00bfff"></i>2024-11-16</span>
          </div>
          <div class="xinxi-fist" @click="XinxiTiaozhuan(ArticleList3.id)">
            <i class="el-icon-user"></i>
            <span class="xinxi-text1">{{ ArticleList3.title }}</span>
            <span>{{ ArticleList3.summary }}</span>
            <span class="xinxi-text3">查看详情&#12288;→</span>
            <span style="color: #9a9a9a"><i class="el-icon-timer" style="display: inline-block; font-size: 18px; color: #00bfff"></i>2024-11-16</span>
          </div>
        </div>
      </div>
      <!-- 新闻政策 -->
      <div class="middle-category" style="margin-top: 50px">
        <div class="category-title">
          <span class="category-text1"> 新闻政策 </span>
          <div class="underline"></div>
        </div>
        <div class="my-tabs">
          <el-tabs type="card" stretch style="margin-top: 50px">
            <el-tab-pane label="新闻动态">
              <!-- 新闻标题 -->
              <div class="corporation">
                <div>
                  <div class="news-title" v-for="(item, index) in NesList" :key="index" @click="XinwenTiaozhuan(item.id)">
                    <div style="border-bottom: 1px solid black">
                      <h5>{{ item.title }}</h5>
                      <p v-html="item.content"></p>
                    </div>
                    <!-- <img :src="item.thumbnail" alt="DaLa Awards" style="
                        width: 200px;
                        height: 100px;
                        margin-left: 20px;
                        margin-top: 30px;
                      " /> -->
                  </div>
                </div>
                <div class="corporation-right">
                  <img src="../assets//image/erweima.jpg" alt="" style="width: 200px; height: 200px" />
                  <span>冀网联公众号</span>
                  <span>扫码关注</span>
                </div>
              </div>
            </el-tab-pane>
            <el-tab-pane label="政策详情">
              <!-- 政策详情 -->
              <div class="corporation">
                <div>
                  <div class="news-title" v-for="(item, index) in ZhengceList" :key="index" @click="ZhengceTiaozhuann(item.id)">
                    <div style="border-bottom: 1px solid black">
                      <h5>{{ item.title }}</h5>
                      <p v-html="item.content"></p>
                    </div>
                    <!-- <img :src="item.thumbnail" alt="DaLa Awards" style="
                        width: 200px;
                        height: 100px;
                        margin-left: 20px;
                        margin-top: 30px;
                      " /> -->
                  </div>
                </div>
                <div class="corporation-right">
                  <img src="../assets//image/erweima.jpg" alt="" style="width: 200px; height: 200px" />
                  <span>冀网联公众号</span>
                  <span>扫码关注</span>
                </div>
              </div>
            </el-tab-pane>
          </el-tabs>
        </div>
      </div>
      <!-- 合作机构 -->
      <div class="middle-category" style="margin-top: 50px">
        <div class="category-title">
          <span class="category-text1"> 可信空间生态伙伴 </span>
          <div class="underline"></div>
        </div>
        <div class="institution">
          <div class="institution-icon">
            <template v-for="(item, index) in Image">
              <div :key="index" @click="InstitutionTiaozhuan(item.id)">
                <img :src="item.image" alt="" style="width: 220px; height: 48px" />
              </div>
            </template>
          </div>
        </div>
      </div>
    </div>
    <!-- 页面底部 -->
    <div>
      <Footer></Footer>
    </div>
  </div>
</template>

<script>
import _axios from '../api/request'
import { Wenzhang, institution, ProgictList, AddViews } from '@/api/api'
export default {
  data() {
    return {
      carouselIMG: [require('../assets/image/shouye7.png'), require('../assets/image/shouye.gif'), require('../assets/image/shouye2.gif'), require('../assets/image/shouye3.gif'), require('../assets/image/shouye4.jpg'), require('../assets/image/shouye5.jpg'), require('../assets/image/shouye6.jpg')],
      Image: [9],
      ArticleList: [],
      ArticleList1: {},
      ArticleList2: {},
      ArticleList3: {},
      NesList: [],
      XuqiuList: [],
      ZhengceList: [],
      // 置顶显示
      scrollPosition: 0
    }
  },
  computed: {
    showRightList() {
      return this.scrollPosition > 200
    }
  },
  methods: {
    // 跳转到数据交易
    Trading() {
      this.$router.push('/Trading')
    },
    // 点击项目需求跳转
    AllList() {
      this.$router.push('/XuQiu')
    },
    // 点击机构跳转
    Jigou(type) {
      this.$router.push({
        path: '/brand',
        query: {
          type: type
        }
      })
    },
    //项目详情页跳转
    XiangmuXiangqing(id) {
      if (localStorage.getItem('list') != null) {
        this.$router.push({
          path: '/ProjectDetails',
          query: {
            id: id
          }
        })
      } else {
        this.$message({
          message: '请登录后查看',
          type: 'warning'
        })
      }
      AddViews(id).then(res => {})
    },
    //信息披露详情跳转
    XinxiTiaozhuan(id) {
      this.$router.push({
        path: '/NewsDetail',
        query: {
          id: id
        }
      })
    },
    //新闻详情页跳转
    XinwenTiaozhuan(id) {
      this.$router.push({
        path: '/NewsDetail',
        query: {
          id: id
        }
      })
    },
    //政策详情页跳转
    ZhengceTiaozhuann(id) {
      this.$router.push({
        path: '/NewsDetail',
        query: {
          id: id
        }
      })
    },
    //点击机构图片跳转官网
    InstitutionTiaozhuan(id) {
      let url = this.Image[id - 1].url
      window.open(url)
    },
    //回到顶部
    scrollToTop() {
      document.documentElement.scrollTop = 0
    },
    // 获取滚动了多少像素
    handleScroll() {
      this.scrollPosition = window.scrollY || document.documentElement.scrollTop
    }
  },
  created() {},
  mounted() {
    // 添加滚动监听器
    window.addEventListener('scroll', this.handleScroll)
    // 信息披漏文章
    Wenzhang('3', '1', 'p').then(res => {
      this.ArticleList = res.data.data.records
      this.ArticleList1 = this.ArticleList[0]
      this.ArticleList2 = this.ArticleList[1]
      this.ArticleList3 = this.ArticleList[2]
    }),
      // 合作机构图片
      institution().then(res => {
        this.Image = res.data.data.slice(0, 10)
      }),
      //项目需求
      ProgictList('3', '1').then(res => {
        this.XuqiuList = res.data.data.rows
      })
    // 新闻动态文章
    Wenzhang('3', '1', 'x').then(res => {
      this.NesList = res.data.data.records
    })
    // 政策详情文章
    Wenzhang('3', '1', 'z').then(res => {
      this.ZhengceList = res.data.data.records
    })
  },

  beforeDestroy() {
    // 移除之前添加的监听事件
    window.removeEventListener('scroll', this.handleScroll)
  }
}
</script>

<style lang="less" scoped>
.header-img {
  width: 100%;
}

.middle {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.boxs {
  display: flex;
  flex-direction: column;
  border-right: 2px solid #e3eafb;
  align-items: center;

  .name {
    color: #537ae4;
    margin-bottom: 20px;
  }

  .number {
    font-size: 38px;
    color: #0337cf;
  }
}

.boxs1 {
  display: flex;
  flex-direction: column;
  align-items: center;

  .name {
    color: #537ae4;
    margin-bottom: 20px;
  }

  .number {
    font-size: 38px;
    color: #0337cf;
  }
}

.card {
  background-color: #f7faff;
  width: 1296px;
  height: 200px;
  text-align: center;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  border: 0px solid;
  // box-shadow: 4px 4px 4px 0px #d8e6ee;
}

.middle-xuqiu {
  width: 1296px;
  height: 400px;
  margin-top: 40px;
  display: flex;
  // justify-content: space-between;
  flex-direction: row;

  div {
    width: 400px;
    height: 450px;
    background-color: #f7faff;
    // border: 1px solid #e3e3e3;
    border-radius: 4%;
  }

  .xuqiu-left {
    display: flex;
    flex-direction: column;
    box-shadow: 5px 5px 5px 0px #d4ebf8;

    .text1 {
      font-size: 30px;
      font-weight: bold;
      color: #010b7b;
      margin-left: 24px;
      margin-top: 40px;
    }

    .text2 {
      // margin-left: 24px;
      font-size: 14px;
      margin: 20px;
    }

    .xuqiu-button {
      margin-top: 120px !important;
      margin-left: 24px;
      font-size: 18px !important;
      width: 150px;
      background-color: #2f6cff;
    }
  }

  .xuqiu-right {
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 5px 5px 5px 0px #d4ebf8;

    .text1 {
      font-size: 20px;
      font-weight: bold;
      color: #35445e;
      text-align: center;
      margin-top: 10px;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      width: 200px;
      overflow: hidden;
    }

    .text2 {
      // width: 100px;
      font-size: 14px;
      margin: 10px;
      align-self: flex-start;
      color: #9a9a9a;
      text-indent: 2em;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      overflow: hidden;
      height: 60px;
      text-overflow: ellipsis;
    }

    .text3 {
      align-self: flex-start;
      margin-left: 12px;
    }

    .el-icon-folder-opened {
      font-size: 60px !important;
      color: #3a51f9;
      margin-top: 10px;
    }

    .el-icon-user-solid {
      color: #3a51f9;
      margin-right: 5px;
    }

    .xiangqing {
      color: #005bea;
    }
  }

  .xuqiu-right:hover {
    background-color: #015cea;
    transition: all 2s ease;
    cursor: pointer;
    color: rgb(255, 255, 255);

    span {
      color: rgb(255, 255, 255);
    }

    .el-icon-folder-opened {
      color: #e3e3e3;
    }

    .xiangqing {
      color: rgb(255, 255, 255);
    }

    .text3 {
      .el-icon-user-solid {
        color: white;
      }
    }
  }
}

.middle-category {
  width: 1296px;
  margin-top: 100px;
  display: flex;
  flex-direction: column;

  .category-title {
    display: flex;
    flex-direction: column;
    margin-top: 50px;

    .category-text1 {
      font-size: 34px;
      text-align: center;
    }

    .underline {
      width: 50%;
      height: 10px;
      border-radius: 10px 0px 0px 10px;
      background: linear-gradient(to right, #d3d5fc, rgb(255, 255, 255));
      margin-left: 300px;
    }
  }
}

.category {
  width: 1296px;
  height: 252px;
  background-color: #f7faff;
  margin-top: 50px;
  overflow: hidden;

  .category-icon {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 0px 100px 0px 100px;
    position: relative;

    .icon {
      background-color: white;
      border-radius: 50%;
      width: 90px;
      height: 90px;
      border: 2px solid #dbe2f3;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 55px;
      z-index: 100;
      position: relative;
      top: 30px;

      img {
        width: 60px;
        height: 60px;
      }
    }

    .icon-title {
      width: 200px;
      // height: 200px;
      background-color: white;
      color: #010b7b;
      font-size: 28px;
      font-weight: bold;
      text-align: center;
      line-height: 180px;
      z-index: 1;
      position: relative;
      top: -20px;
      // boxs-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.3);
      border: 1px solid #ceced3;
      border-radius: 5%;
    }

    .icon_title:hover {
      .icon-title {
        background-color: #0f40f5;
        transition: all 0.3s ease;
        cursor: pointer;
        color: rgb(255, 255, 255);
        transform: scale(1.55);
        font-size: 24px;
      }

      .icon {
        z-index: 98;
        width: 95px;
        height: 95px;

        img {
          cursor: pointer;
        }
      }
    }
  }
}

.xinxi {
  width: 1296px;
  height: 300px;
  display: flex;
  justify-content: space-between;
  margin-top: 50px;

  div {
    width: 460px;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

.xinxi-fist {
  background-image: url('../assets//image/icon-99.png');
  background-size: cover;
  border-radius: 10px;
  box-shadow: 5px 5px 5px 0px #d4ebf8;

  i {
    display: flex;
    justify-content: right;
    color: white;
    font-size: 30px;
    margin-right: 5px;
    margin-top: 10px;
  }

  span {
    margin: 10px 18px 0px 18px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;

    text-overflow: ellipsis;
  }

  .xinxi-text1 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
  }

  .xinxi-text3 {
    margin-left: 300px;
    margin-top: 50px;
  }
}

.xinxi-fist1 {
  background-image: url('../assets//image/icon-100.png');
  background-size: cover;
  // background-color: #d2e9f7;
  border-radius: 10px;
  box-shadow: 5px 5px 5px 0px #d4ebf8;

  i {
    display: flex;
    justify-content: right;
    color: white;
    font-size: 30px;
    margin-right: 5px;
    margin-top: 10px;
  }

  span {
    margin: 10px 18px 0px 18px;
    margin: 10px 18px 0px 18px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .xinxi-text1 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
  }

  .xinxi-text3 {
    margin-left: 300px;
    margin-top: 50px;
  }
}

.xinxi-fist:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.xinxi-fist1:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

//修改el-tabs样式
.el-tabs__item.is-active {
  background-color: #1a5eff !important;
}

.el-tabs {
  background-color: #f7faff;
  height: 600px;
}

/deep/.el-tabs__item.is-active {
  background-color: #1a5eff;
  height: 60px;
  font-size: 24px;
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
}

.el-tabs__item {
  color: black;
  font-size: 24px;
  line-height: 60px;
  height: 100%;
  background-color: white;
}

/deep/.el-tabs__item {
  color: black;
  font-size: 24px;
  line-height: 60px;
  height: 100%;
  background-color: white;
}

.news-title {
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  height: 150px;
  cursor: pointer;
}

.event-registration {
  margin-bottom: 20px;
}

.workshop-introduction {
  margin-bottom: 20px;
}

.qr-code {
  text-align: center;
}

p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 600px;
  text-overflow: ellipsis;
  margin-top: 20px;
  margin-left: 20px;
  font-size: 14px;
}

h5 {
  margin-top: 30px;
  margin-left: 20px;
  color: #010b7b;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  width: 600px;
  text-overflow: ellipsis;
}

.corporation {
  display: flex;
  flex-direction: row;
  // justify-content: space-around;
}

.corporation-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-left: 200px;
}

.institution {
  margin-top: 50px;
  margin-bottom: 50px;
  width: 1296px;
  height: 240px;
  background-color: #f6f6f6;

  .institution-icon {
    display: flex;
    flex-wrap: wrap;
    cursor: pointer;

    div {
      width: 240px;
      height: 100px;
      margin: 10px;
      background-color: #fff;
      border-radius: 10%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-grow: 1;
      flex-shrink: 1;
      flex-basis: 0;
      width: 50%;
    }
  }
}

.rightlist {
  position: fixed;
  top: 50%;
  right: 0px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  background-color: white;
  cursor: pointer;
  border: 1px solid #eeeeee;
  border-radius: 25px;
  box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.1);

  span {
    padding: 10px 4px 10px 4px;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    text-align: center;

    i {
      text-align: center;
      font-size: 26px;
      padding-bottom: 5px;
    }
  }

  span:hover {
    color: #2f6cff;
  }
}

:deep(.el-tooltip__popper.is-light) {
  background: #8f1515 !important;
  /* border: 1px solid #303133; */
}

.data-service {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7faff;
  width: 1296px;
  height: 400px;
  border-radius: 12px;
  box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.1);
  .content-left {
    flex: 0 0 40%;

    .title {
      font-size: 36px;
      font-weight: bold;
      color: #333;
      margin-left: 20px;
    }

    .subtitle {
      font-size: 18px;
      color: #666;
      margin-bottom: 30px;
    }

    .description {
      font-size: 16px;
      line-height: 1, 8;
      color: #666;
      margin-bottom: 40px;
      margin-left: 20px;
    }

    .goto-btn {
      padding: 12px 30px;
      font-size: 16px;
      margin-left: 20px;
    }
  }

  .content-right {
    flex: 0 0 50%;

    .flow-chart {
      border-radius: 8px;
      padding: 30px;
      position: relative;

      .data-merchant {
        position: absolute;
        top: -15px;
        right: 50%;
        transform: translateX(50%);
        background: #409eff;
        color: white;
        padding: 4px 15px;
        border-radius: 4px;
        font-size: 14px;
      }

      .trading-box {
        // background: #fff;
        border-radius: 8px;
        padding: 20px;
        // border: 1px solid #e8e8e8;

        .trading-header {
          text-align: center;
          color: #409eff;
          font-size: 18px;
          margin-bottom: 20px;
          border-bottom: 1px solid #eee;
          padding-bottom: 15px;
        }

        .trading-process {
          display: flex;
          justify-content: space-between;
          margin-bottom: 20px;

          .process-section {
            flex: 1;
            text-align: center;
            padding: 0 10px;
            border-right: 1px dashed #eee;

            &:last-child {
              border-right: none;
            }

            .section-title {
              color: #409eff;
              margin-bottom: 15px;
              font-weight: bold;
            }

            .section-items {
              display: flex;
              flex-direction: column;
              gap: 8px;
              color: #666;
              font-size: 14px;
            }
          }
        }

        .platform-name {
          text-align: center;
          color: #409eff;
          font-size: 16px;
          padding-top: 15px;
          border-top: 1px solid #eee;
        }
      }
    }
  }
}
</style>